package com.accesshollywood.grfxOrdering.orderTreeSpecial;

import java.awt.Component;
import java.util.ArrayList;

import javax.swing.BoxLayout;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

import com.accesshollywood.grfxOrdering.basics.NamedList;
import com.accesshollywood.grfxOrdering.orderTreeSpecial.models.AbstractButtonPlusModel;
import com.accesshollywood.grfxOrdering.orderTreeSpecial.models.ButtonAndStringModel;

public class ButtonStringPanel extends JPanel {
	/*
	ButtonAndStringModel buttonAndString;
	JList list;
	
	public ButtonStringPanel(){
		super();
		setBorder(new TitledBorder(new EtchedBorder(), ""));
	}
	
	public void create(String label, NamedList listing, ArrayList<AbstractButtonPlusModel> allButtons){
		buttonAndString = new ButtonAndStringModel(label);
		
		setAlignmentY(Component.TOP_ALIGNMENT);
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));

		buttonAndString.setAlignmentX(Component.LEFT_ALIGNMENT);
		buttonAndString.listing = listing;
		
//		if(label.equals("Copy Filename")){
//			buttonAndString.listing.type = NamedList.TEXT;
//		}else{
//			buttonAndString.listing.type = NamedList.FOLDER;
//		}
				
		list = new JList();
		list.setAlignmentX(Component.LEFT_ALIGNMENT);
		list.setModel(listing.toListModel());
		add(list);
		add(buttonAndString);

		allButtons.add(buttonAndString);
	}
	*/
}
